#!/usr/bin/env sh

set -e

if [ ! -d "$messagePath" ];then
mkdir -p $messagePath
fi
./echoMessage.sh 'Initializing. '

while true; do
	curl -X PUT  \
        -F message=@$messagePath/message-${BUILD_NUMBER} \
        "$callback_url/status"
	sleep 1
done

